package com.wn34.goods.mapper;

import com.wn34.goods.entity.Goods;
import com.wn34.goods.vo.GoodsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsMapper {
    int deleteByPrimaryKey(Integer gid);

    int insert(Goods record);

    Goods selectByPrimaryKey(Integer gid);

    List<Goods> selectAll();

    int updateByPrimaryKey(Goods record);

    List<GoodsVo> selectByPage(@Param("goodsName") String goodsName, @Param("typeId") Integer typeId);
}